import { createDomElemenet } from "../../Dom";
import { createReactInstance } from "../CreateReactInstance";

// CreateStateNode/index.js
export function createStateNode (fiber) {
  if (fiber.tag === 'host_component') {
    return createDomElemenet(fiber)
  } else {
    return createReactInstance(fiber)
  }
}